DSFX.Tween = function( time, easement ) 
{
	this.duration = time || 1;
	this.easement = easement || Easing.easeNone;
	this.end();
	return this;
};

DSFX.Tween.prototype =
{
	go: function()
	{
		DSFX.Tweener.register( this );	
	},
	
	start: function()
	{        
		this.tweened = true;
		this.totalFrames = Math.ceil( DSFX.Tweener.fps * this.duration );
    	this.startTime = new Date();
	},
	
	end: function()
	{
		this.tweenies = [];
		this.tweened = false;
		this.startTime = null;
		this.currentFrame = 0;
		this.actualFrames = 0;
		this.totalFrames = 0;
	},
	
	tween: function( percent )
	{
		for ( var i=0, len=this.tweenies.length; i<len; i++ )
		{
			this.tweenies[i]( percent );
		}
	}
};